import Vue from "vue";
import VueRouter from "vue-router";

Vue.use(VueRouter);

const routes = [
    {
        path: "/address/list",
        component: () =>
            import(/* webpackChunkName: "about" */ "../views/AddressList.vue"),
    },
    {
        path: "/address/add",
        component: () =>
            import(/* webpackChunkName: "about" */ "../views/AddressAdd.vue"),
    },
    {
        path: "/address/edit/:id",
        component: () =>
            import(/* webpackChunkName: "about" */ "../views/AddressEdit.vue"),
    },
];

const router = new VueRouter({
    mode: "history",
    base: process.env.BASE_URL,
    routes,
});

export default router;
